package com.lianxian.xindong.login.di.module;

import com.hxb.library.di.scope.ActivityScope;
import com.lianxian.xindong.login.mvp.contract.OtherStepThreeContract;
import com.lianxian.xindong.login.mvp.model.OtherStepThreeModel;
import com.lianxian.xindong.login.mvp.model.entity.TagHobbyBean;
import com.lianxian.xindong.login.mvp.ui.adapter.TagHobbyAdapter;

import java.util.ArrayList;
import java.util.List;

import dagger.Binds;
import dagger.Module;
import dagger.Provides;


/**
 * @作者：hexingbo
 * @时间：07/04/2023
 * @描述：
 */
@Module
public abstract class OtherStepThreeModule {

    @Binds
    abstract OtherStepThreeContract.Model bindOtherStepThreeModel(OtherStepThreeModel model);

    @ActivityScope
    @Provides
    static List<TagHobbyBean> mList() {
        return new ArrayList<>();
    }

    @ActivityScope
    @Provides
    static TagHobbyAdapter provideAdapter(OtherStepThreeContract.View view, List<TagHobbyBean> list) {
        TagHobbyAdapter adapter = new TagHobbyAdapter(view.getContext(), list);
        return adapter;
    }

}